package com.wx.ssm.service.impl;

import com.wx.ssm.dao.AccountDao;
import com.wx.ssm.model.Account;
import com.wx.ssm.service.IAccountService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class AccountService implements IAccountService {
    @Resource
    AccountDao accountDao=null;
    @Override
    public boolean addAccount(Account account) {
        if(accountDao.insertAccount(account)>0){
            return true;
        }
        return false;
    }

    @Override
    public boolean addMoney(Account account) {
        return false;
    }

    @Override
    public boolean getMoney(Account account) {
        return false;
    }

    @Override
    public Account accountList(String aid) {
        return accountDao.selectAccount(aid);
    }

    @Override
    public boolean saveMoney(String aid, String aid1, double money) {
        return false;
    }

    @Override
    public boolean delAccount(Account account) {
        return false;
    }

    @Override
    public Account indexAccount(Account account) {
        return accountDao.SelAccount(account);
    }
}
